/*******************************************************************************
 * Copyright (C) 2016. Tripint Information Technology Co., Ltd. All rights reserved. *
 * Authors:lirichen
 * File:DiscussDataService.java
 * This software, including documentation, is protected by copyright controlled
 * by Tripint Information Technology Co., Ltd. All rights are reserved.
 ******************************************************************************/

package com.taorenqi.data.service;


import com.taorenqi.data.common.BasePageableResponse;
import com.taorenqi.data.common.BaseResponse;
import com.taorenqi.data.entity.login.CodeDataEntity;
import com.taorenqi.data.entity.login.LoginEntity;
import com.taorenqi.data.entity.mine.BannerListEntity;
import com.taorenqi.data.entity.mine.GiftEntity;
import com.taorenqi.data.entity.mine.MessageDetailEntity;
import com.taorenqi.data.entity.mine.MessageEntity;
import com.taorenqi.data.entity.mine.MoneyDetailEntity;
import com.taorenqi.data.entity.mine.PopularityEntity;
import com.taorenqi.data.entity.mine.RechargeRecordEntity;
import com.taorenqi.data.entity.mine.RechargeRecordVipEntity;
import com.taorenqi.data.entity.mine.UserCenterEntity;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by lirichen on 16/9/12.
 */
public interface MineDataService {

    //资金明细
    @GET("moneyDetail")
    Observable<BaseResponse<BasePageableResponse<MoneyDetailEntity>>> getMoneyDetail(
            @Query("tkmtype") int tkmtype,
            @Query("page") int page,
            @Query("pageSize") int pageSize,
            @Query("sign") String sign
    );

    //人气值明细
    @GET("point")
    Observable<BaseResponse<BasePageableResponse<PopularityEntity>>> getPopularity(
            @Query("type") int type,
            @Query("page") int page,
            @Query("pageSize") int pageSize
    );

    //礼券
    @GET("coupon")
    Observable<BaseResponse<BasePageableResponse<GiftEntity>>> getGift(
            @Query("type") int type,
            @Query("page") int page,
            @Query("pagesize") int pageSize,
            @Query("sign") String sign
    );

    //gb充值记录
    @GET("chargeRecord")
    Observable<BaseResponse<BasePageableResponse<RechargeRecordEntity>>> getGbRecharge(
            @Query("page") int page,
            @Query("pagesize") int pageSize
    );

    //vip充值记录
    @GET("chargeVipRecord")
    Observable<BaseResponse<BasePageableResponse<RechargeRecordVipEntity>>> getVipRecharge(
            @Query("page") int page,
            @Query("pagesize") int pageSize
    );

    //站内信息
    @GET("message")
    Observable<BaseResponse<BasePageableResponse<MessageEntity>>> getMessage();


    //站内信息详情
    @GET("messageDetail")
    Observable<BaseResponse<BasePageableResponse<MessageDetailEntity>>> getMessageDetail(
            @Query("news_type") int news_type,
            @Query("id") int id
    );

    //个人中心
    @GET("userCenter")
    Observable<BaseResponse<BasePageableResponse<UserCenterEntity>>> getUserCenter();

    //广告位
    @GET("bannerlist")
    Observable<BaseResponse<BasePageableResponse<BannerListEntity>>> getBannerList();


}
